package com.evola.dbsm.model
{
	import mx.collections.IList;

	[Bindable]
	[RemoteClass(alias="com.evola.dbsm.model.UserBean")]
	public class UserBean extends BaseBean
	{
		
		private var _username : String;
		private var _name : String;
		private var _surname : String;
		private var _password : String;	
		private var _projects:IList;
		private var _profileImage: String;
		
		public function UserBean()
		{
			super();
		}
		
		public function getFullName() :String{
			
			var fullName : String = "";
			
			if(_name)
				fullName += _name + " ";
			
			if(_surname)
					fullName += _surname;
			
			if(fullName == "")
				fullName = _username;
			
			return fullName;
		}
		
		public function get fullName() : String{
			
			return getFullName();
		}

		public function get username():String
		{
			return _username;
		}

		public function set username(value:String):void
		{
			_username = value;
		}

		public function get name():String
		{
			return _name;
		}

		public function set name(value:String):void
		{
			_name = value;
		}

		public function get surname():String
		{
			return _surname;
		}

		public function set surname(value:String):void
		{
			_surname = value;
		}

		public function get password():String
		{
			return _password;
		}

		public function set password(value:String):void
		{
			_password = value;
		}
		
		public function set projects(value :IList) : void{
			
			_projects = value;
		}
		
		public function get projects() : IList{
			
			return _projects;
		}
		
		public function set profileImage(value : String) : void{
			
			_profileImage = value;
		}
		
		public function get profileImage() : String{
			
			return _profileImage;
		}


	}
}